<include file="Public:header" />
<!--广告列表-->
<div class="pad_lr_10">
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="order" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
            	<div class="bk3"></div>
                订单号：
                <input name="order_code" type="text" class="input-text mr10" value="{$search.order_code}" />
                消费者姓名：
                <input name="customer_name" type="text" class="input-text mr10" value="{$search.customer_name}" />
                消费者手机号：
                <input name="customer_phone" type="text" class="input-text mr10"  value="{$search.customer_phone}" />
                <input type="submit" name="search" class="btn" value="搜索" />
        	</div>
            </td>
            </tr>
        </tbody>
    </table>
    </form>
    
    <div class="J_tablelist table_list" data-acturi="{:U('Order/ajax_edit')}">
		<table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="25"><input type="checkbox" name="checkall" class="J_checkall"></th>
            <th>ID</th>
            <th><span data-tdtype="order_by" data-field="order_code">订单号</span></th>
            <th><span data-tdtype="order_by" data-field="goods_name">商品名称</span></th>
            <th ><span data-tdtype="order_by" data-field="goods_count">购买数量</span></th>
            <th><span data-tdtype="order_by" data-field="customer_name">消费者姓名</span></th>
            <th><span data-tdtype="order_by" data-field="customer_phone">消费者手机</span></th>
            <th><span data-tdtype="order_by" data-field="created_username">创建人</span></th>
            <th><span data-tdtype="order_by" data-field="updated_username">最后操作人</span></th>
            <th><span data-tdtype="order_by" data-field="status">订单状态</span></th>
          </tr>
        </thead>
        <tbody>
          <volist name="list" id="val" >
          <tr>
            <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
            <td align="center">{$val.id}</td>
            <td align="center">{$val.order_code}</td>
            <td align="center">{$val.goods_name}</td>
            <td align="center"><span data-tdtype="edit" data-field="goods_count" data-id="{$val.id}" class="tdedit">{$val.goods_count}</span></td>
            <td align="center">{$val.customer_name}</td>
            <td align="center">{$val.customer_phone}</td>
            <td align="center">{$val.created_username}({$val.created_at|date='Y-m-d H:i:s',###})</td>
            <td align="center">{$val.updated_username}({$val.updated_at|date='Y-m-d H:i:s',###})</td>
            <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
          </tr>
          </volist>
        </tbody>
      	</table>
		<div class="btn_wrap_fixed">
    		<!--<label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>-->
            <!--<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('ad/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />-->
    		<div id="pages">{$page}</div>
    	</div>
    </div>
</div>
<include file="Public:footer" />
</body>
</html>